package top.yuyufeng.learn.dao;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import top.yuyufeng.learn.mapper.GoodInfoMapper;
import top.yuyufeng.learn.modal.GoodInfo;

import java.util.List;

/**
 * @author yuyufeng
 * @date 2018/5/17.
 */
@Repository
public class GoodInfoDao {
    @Autowired
    private GoodInfoMapper goodInfoMapper;

    public void insert(GoodInfo good) {
        goodInfoMapper.insert(good);
    }

    public List<GoodInfo> selectAll() {
        return goodInfoMapper.selectAll();
    }
}
